package com.maimeng;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;


@EnableAutoConfiguration
//指定扫描包  不指定默认扫描同级目录
@ComponentScan({"com.maimeng","com.news"})
public class MyApp {
    public static void main(String[] args)
    {
        SpringApplication.run(MyApp.class, args);
    }
}
